package unit3.part10;

import java.util.Scanner;

/**
 * 动态显示偶数序列
 */
public class EvenNum {
    public static void main(String[] args) {
        System.out.println("请任意输入五个正整数数字：");
        Scanner in = new Scanner(System.in);
        int[] nums = new int[5];        // 接收用户输入的5个正整数
        for (int i = 0; i < nums.length; i++) {
            nums[i] = in.nextInt();
        }
        in.close();

        for (int x : nums) {
            if (x % 2 == 0) {
                System.out.print(x + "\t");
            }
        }
    }
}
